package com.wodsy.phoenix.dataobject.cms.model;

// Generated 2015-4-27 10:15:56 by Hibernate Tools 3.4.0.CR1

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.wodsy.phoenix.dataobject.base.PhoenixObject;
import com.wodsy.phoenix.dataobject.base.PhoenixRequest;
import com.wodsy.phoenix.dataobject.base.PhoenixResponse;

/**
 * IdxCustomizePic generated by hbm2java
 */
@Entity
@Table(name = "tb_idx_customize_pic", catalog = "cms")
public class IdxCustomizePic extends PhoenixObject implements PhoenixRequest,PhoenixResponse  {

	private Integer id;
	private String picUrl;
	private String picHref;
	private String picAlt;
	private Integer status;
	private Date onlineTime;
	private Date offlineTime;
	private Date createTime;
	private Date updateTime;

	public IdxCustomizePic() {
	}

	public IdxCustomizePic(String picUrl, Integer status, Date onlineTime,
			Date offlineTime, Date createTime) {
		this.picUrl = picUrl;
		this.status = status;
		this.onlineTime = onlineTime;
		this.offlineTime = offlineTime;
		this.createTime = createTime;
	}

	public IdxCustomizePic(String picUrl, String picHref, String picAlt,
			Integer status, Date onlineTime, Date offlineTime, Date createTime,
			Date updateTime) {
		this.picUrl = picUrl;
		this.picHref = picHref;
		this.picAlt = picAlt;
		this.status = status;
		this.onlineTime = onlineTime;
		this.offlineTime = offlineTime;
		this.createTime = createTime;
		this.updateTime = updateTime;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "pic_url", nullable = false, length = 200)
	public String getPicUrl() {
		return this.picUrl;
	}

	public void setPicUrl(String picUrl) {
		this.picUrl = picUrl;
	}

	@Column(name = "pic_href", length = 200)
	public String getPicHref() {
		return this.picHref;
	}

	public void setPicHref(String picHref) {
		this.picHref = picHref;
	}

	@Column(name = "pic_alt", length = 25)
	public String getPicAlt() {
		return this.picAlt;
	}

	public void setPicAlt(String picAlt) {
		this.picAlt = picAlt;
	}

	@Column(name = "status", nullable = false)
	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "online_time", nullable = false, length = 19)
	public Date getOnlineTime() {
		return this.onlineTime;
	}

	public void setOnlineTime(Date onlineTime) {
		this.onlineTime = onlineTime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "offline_time", nullable = false, length = 19)
	public Date getOfflineTime() {
		return this.offlineTime;
	}

	public void setOfflineTime(Date offlineTime) {
		this.offlineTime = offlineTime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time", length = 19,updatable=false)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "update_time", length = 19)
	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Override
	public String toString() {
		return "IdxCustomizePic [id=" + id + ", picUrl=" + picUrl
				+ ", picHref=" + picHref + ", picAlt=" + picAlt + ", status="
				+ status + ", onlineTime=" + onlineTime + ", offlineTime="
				+ offlineTime + ", createTime=" + createTime + ", updateTime="
				+ updateTime + "]";
	}
	
	

}
